/*
** basics2.c for mysh in /home/nadali_t//local/svn/tek2ed/minishell1
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Thu Nov  8 12:22:42 2012 thomas nadalie
** Last update Thu Nov  8 12:22:44 2012 thomas nadalie
*/

#include	<unistd.h>
#include	<stdlib.h>
#include	"my.h"

int		my_tablen(char **tab)
{
  int		i;

  i = 0;
  while (tab[i])
    i++;
  return (i);
}

void		cmd_error(char **tab)
{
  my_putstr(tab[0]);
  my_putstr(" : command not found\n");
  exit(0);
}

int		epur_buff(char *buff, int i)
{
  while (buff[i] == ' '  && buff[i])
    i++;
  return (i);
}

void		catch_ctrl(int sign)
{
  sign = 0;
  sign = sign + sign;
  value_prompt = 0;
  my_putstr("\n\b\b");
  aff_prompt();
}
